package com.atguigu.spzx.user.client;

import com.atguigu.spzx.model.entity.h5.UserAddress;
import com.atguigu.spzx.model.result.Result;
import io.swagger.v3.oas.annotations.Operation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "service-user")
public interface UserClient {

    @Operation(summary = "查询指定用户地址")
    @GetMapping("/api/user/userAddress/getUserAddress/{id}")
    public Result<UserAddress> getUserAddress(@PathVariable("id")Long id);
}
